package com.teensoft.core.user;

import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;

public class Permission implements Serializable {
	private static final long serialVersionUID = -3484275418227162921L;
	
	private String id = "";
	private Resource resource = null;
	private Set<Role> role = new HashSet<Role>();
	private Set<User> user = new HashSet<User>();
	private Set<Group> group = new HashSet<Group>();
	
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public Resource getResource() {
		return resource;
	}
	public void setResource(Resource resource) {
		this.resource = resource;
	}
	public Set<Role> getRole() {
		return role;
	}
	public void setRole(Set<Role> role) {
		this.role = role;
	}
	public Set<User> getUser() {
		return user;
	}
	public void setUser(Set<User> user) {
		this.user = user;
	}
	public Set<Group> getGroup() {
		return group;
	}
	public void setGroup(Set<Group> group) {
		this.group = group;
	}
}
